<%@ page import="com.example.servletdemo.model.User" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <% User user= (User) session.getAttribute("user");%>
  <title>系统主页</title>
</head>
<body>
  <h1>系统主页</h1>
  <h3>你好，<%=user.getUsername()%></h3>
  <form action="/LoginOutServlet" method="post">
    <input type="submit" value="退出登陆"/>
  </form>
</body>
</html>
